function test() {
    const a = 100

    function getA() {
        console.log(a)
    }

    return getA
}

const result = test()
result()
result()
